package com.tiancheng.trade.settlement.util;

import com.tiancheng.trade.commom.core.data.Result;


public class Res {


    public static Result judge(int ret, String operation) {

        return ret > 0 ? Result.success().setMsg(operation + "成功") : Result.fail(operation + "失败");
    }
}
